.header {
  //text-align: center;
  padding: 5px 0 6px;
  //background: linear-gradient(to bottom, rgb(207 255 234), rgb(241 255 248));
  color: black;
  position: relative;
  // display: flex;
}

.content {
  padding: 16px;
}

.color-card {
  //margin-bottom: 20px;
  //border-radius: 12px;
  overflow: hidden;
  //border: 1px solid #000000;
  margin: 20px;
}

.color-block {
  //height: 80px;
  border-radius: 8px;
  // background-color: #1890ff;
  border: 1px solid #000000;
  margin-top: 20px;
}

.color-text {
  display: flex;
  font-size: 16px;
}

.dialog-text {
  margin-bottom: 16px;
  line-height: 1.6;
}

.dialog-text p {
  margin: 8px 0;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.introduction {
  text-align: center;
  margin-top: 24px;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
  font-style: italic;
}

.actions {
  padding: 0 20px 20px;
}

.continue-button {
  height: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  background: #edfbfd;
  border: none;
  color: #52b6ce;
  box-shadow: 0 4px 8px rgba(255, 126, 95, 0.3);
  transition: all 0.3s ease;
}

.continue-button:disabled {
  background: #f0f0f0;
  color: #bfbfbf;
  box-shadow: none;
  cursor: not-allowed;
}

.continue-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 126, 95, 0.4);
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  background-color: #fff;
  border-radius: 12px;
  padding: 12px;
}

.message-list {
  --border-inner: none;
  --border-bottom: none;
  --border-top: none;
}

.message {
  display: flex;
  margin-bottom: 16px;
}

.message-content {
  max-width: 70%;
  padding: 12px;
  border-radius: 12px;
  position: relative;
}

.user-message {
  justify-content: flex-end;
}

.user-message .message-content {
  background-color: #1890ff;
  color: white;
  border-top-right-radius: 4px;
}

.other-message {
  justify-content: flex-start;
}

.other-message .message-content {
  background-color: #f0f0f0;
  color: #333;
  border-top-left-radius: 4px;
}

.message-text {
  margin-bottom: 4px;
  word-break: break-word;
}

.message-time {
  font-size: 12px;
  opacity: 0.7;
  text-align: right;
}

.other-message .message-time {
  text-align: left;
}

.play-button {
  margin-top: 8px;
}

.option-image {
  //height: 160px;
  //display: block;
}

/* CardNavigation.css */
.navigation-header {
  margin-bottom: 40px;
}

.navLabel {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 14px;
  margin-left: 20px;
  margin-right: 20px;
}

.cardLabel {
  background-color: #f0e6ff;
  /* 浅紫色背景 */
  color: #722ed1;
  /* 紫色文字 */
}

.label-text {
  font-size: 16px;
  margin-right: 6px;
}

.label-count {
  font-size: 14px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.circle-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #d3adf7;
  /* 浅紫色 */
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-button.active {
  background-color: rgb(167, 172, 239);
  ;
  /* 紫色 */
  transform: scale(1.05);
}

.circle-button:hover {
  opacity: 0.8;
}

/* DialogueCard.css */
.dialogue-container {
  max-width: 500px;
  // margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.title-card {
  margin: -1rem 1.5rem 1.7rem;
  border-radius: 20px;
  border-color: #4CAF50;
  border-width: 2px;
  background-color: #4caf500d;

  .sentense {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #4CAF50;
  }

  .phrase-controls {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
  }

  .control-button {
    width: 48px;
    height: 48px;
    border: none;
    margin: 0 20px;
    background-color: #a7acef33;

    &:hover {
      background-color: #e6f7ff;
      border-color: #91d5ff;
    }

    .anticon {
      font-size: 20px;
      color: #595959;
    }
  }
}

// .ant-card .ant-card-head {
//   display: block;
//   margin-left: 20px;
// }




.card-title {
  color: rgb(167, 172, 239);
  /* 紫色 */
  font-weight: 500;
}

.content-card {
  border: none;
  border-radius: 8px;
  // padding: 16px;
}

.image-container {
  // margin-bottom: 16px;
  text-align: center;
}

.dialogue-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-container {
  margin-bottom: 20px;
}

.english-text {
  color: #52c41a;
  /* 绿色 */
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  text-align: center;
}

.chinese-text {
  background-color: #f6ffed;
  /* 浅绿色背景 */
  color: #237804;
  /* 深绿色文字 */
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
}

.button-row {
  margin-top: 20px;
}

.icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background-color: #f0e6ff;
  /* 浅紫色背景 */
  color: #722ed1;
  /* 紫色 */
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
}

.icon-button:hover {
  background-color: #d3adf7;
  /* 稍深的紫色 */
  transform: translateY(-2px);
}

.button-text {
  margin-top: 4px;
  font-size: 12px;
}


/* 响应式调整 */
@media (max-width: 480px) {
  .header span {
    font-size: 1.2rem;
  }

  .word-display {
    font-size: 1.7rem;
    padding: 12px 25px;
  }

  .images-grid {
    gap: 15px;
    padding: 20px;
  }

  .option-image {
    //height: 140px;
  }

  .image-label {
    font-size: 1rem;
  }

  .continue-button {
    height: 46px;
    font-size: 1rem;
  }

  .progress-container {
    flex-direction: column;
    gap: 12px;
  }

  .button-container {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;

    .card-button.ant-btn-default {
      background-color: #a7acef;
      color: #ffffff
    }
  }

  .circle-button {
    width: 40px;
    height: 40px;
  }
}